package com.genreate.domain;

import java.util.List;

/**
 * Created by liting on 2015/11/20. 分页实体类
 */
public class Page {

    //保存实体类集合
    public List list;
    //一页显示的数量
    public int pagesize;
    //页码
    public int pagenum;
    //实体类总条数
    public int pagetotal;
    //主键
    public  String primarykey;


    public String keyDate;


    public String tableName;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

     public String getPrimarykey() {
        return primarykey;
    }

    public void setPrimarykey(String primarykey) {
        this.primarykey = primarykey;
    }


    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public int getPagesize() {
        return pagesize;
    }

    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }

    public int getPagenum() {
        return pagenum;
    }

    public void setPagenum(int pagenum) {
        if(pagenum==0)pagenum=1;
        this.pagenum = pagenum;
    }

    public int getPagetotal() {
        return pagetotal;
    }

    public void setPagetotal(int pagetotal) {
        this.pagetotal = pagetotal;
    }


}
